package com.ajieee.merge.controller.finance;

import com.ajieee.merge.entity.common.result.ApiResult;
import com.ajieee.merge.entity.finance.dto.SelfChosenReqDTO;
import com.ajieee.merge.entity.finance.dto.SelfChosenRespDTO;
import com.ajieee.merge.entity.finance.po.EtlManagerPO;
import com.ajieee.merge.enums.finance.EtlType;
import com.ajieee.merge.mapper.EtlManagerMapper;
import com.ajieee.merge.service.SelfChosenService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.time.LocalDate;
import java.util.List;

/**
 * 自选管理
 *
 * @author ajieee
 * @date 2025-10-25
 */
@RestController
@RequiredArgsConstructor
@RequestMapping("/self_chosen")
public class SelfChosenController {

	private final SelfChosenService selfChosenService;

	@GetMapping("/list")
	public ApiResult<List<SelfChosenRespDTO>> list(SelfChosenReqDTO dto) {
		List<SelfChosenRespDTO> list = selfChosenService.list(dto);
		return ApiResult.success(list);
	}

}
